<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<nav>
	<ul class="pagination">
		<pg:pager export="curPage=pageNumber" items="${datas.total }" maxPageItems="${datas.size }"
			url="${param.url }">
			<pg:prev>
				<li><a href="<%=pageUrl%>" aria-label="Previous"> <span
						aria-hidden="true">&laquo;</span>
				</a></li>
			</pg:prev>
			<pg:pages>
				<c:if test="${curPage eq pageNumber }">
				<li><a><%=pageNumber%></a></li>
				</c:if>
				<c:if test="${curPage != pageNumber }">
				<li><a href="<%=pageUrl%>"><%=pageNumber%></a></li>
				</c:if>
			</pg:pages>
			<pg:next>
				<li><a href="<%=pageUrl%>" aria-label="Next"> <span
						aria-hidden="true">&raquo;</span>
				</a></li>
			</pg:next>
		</pg:pager>
	</ul>
</nav>
